package com.google.code.coma;

import com.google.code.coma.assembly.RmiAssemblyWorker;
import com.google.code.coma.assembly.SpaceAssemblyWorker;

/**
 * @author Dominik Strasser, dominikstr@gmail.com
 */
public class AssemblyWorkerLauncher {
	public static void main(String... args) {
		if (args.length != 2) {
			System.out.println("Please specify mode");
			return;
		}
		if (args[0].equals("SPACE"))
			new SpaceAssemblyWorker(args[1]).startWork();
		else if (args[0].equals("RMI"))
			new RmiAssemblyWorker(args[1]).startWork();
		else
			System.out.println("Unkown operation mode");
	}
}
